package com.ruogu.codegeneration.model.dto.user;

import com.ruogu.codegeneration.common.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author ruogu
 */
@Data
@Schema(description = "用户查询请求")
@EqualsAndHashCode(callSuper = true)
public class UserQueryRequest extends PageRequest implements Serializable {

    /**
     * 用户编号
     */
    @Schema(description = "用户编号", example = "1")
    private Long id;

    /**
     * 账号
     */
    @Schema(description = "账号", example = "admin123")
    private String userAccount;

    /**
     * 用户昵称
     */
    @Schema(description = "用户昵称（模糊查询）", example = "张")
    private String userName;

    /**
     * 简介
     */
    @Schema(description = "用户简介（模糊查询）", example = "这是一个用户简介")
    private String userProfile;

    /**
     * 用户角色
     */
    @Schema(description = "用户角色", example = "user", allowableValues = {"user", "admin"})
    private String userRole;

    @Serial
    private static final long serialVersionUID = 1L;
}